package com.lfd.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.ResponseBody;

import com.lfd.service.IOrderProductService;
import com.lfd.util.Result;
import com.lfd.vo.OrderProductVo;


@Controller
@RequestMapping("/order")
public class OrderProductController {

	@Autowired
	private IOrderProductService iOrderProductService;
	
	@ResponseBody
	@RequestMapping("/selectp")
    public Result selectp(OrderProductVo orderProductVo){
		
    	List<OrderProductVo> selectp = iOrderProductService.selectp(orderProductVo);
    	return new Result("0","成功",selectp.size(),selectp);
    	
    }
}
